package com.ruoyi.zsyh.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.zsyh.mapper.ZsyhPlatformSellpartsnotsaleMapper;
import com.ruoyi.zsyh.domain.ZsyhPlatformSellpartsnotsale;
import com.ruoyi.zsyh.service.IZsyhPlatformSellpartsnotsaleService;
import com.ruoyi.common.core.text.Convert;

/**
 * 产品禁售区域Service业务层处理
 * 
 * @author yuexl
 * @date 2025-04-27
 */
@Service
public class ZsyhPlatformSellpartsnotsaleServiceImpl implements IZsyhPlatformSellpartsnotsaleService 
{
    @Autowired
    private ZsyhPlatformSellpartsnotsaleMapper zsyhPlatformSellpartsnotsaleMapper;

    /**
     * 查询产品禁售区域
     * 
     * @param id 产品禁售区域ID
     * @return 产品禁售区域
     */
    @Override
    public ZsyhPlatformSellpartsnotsale selectZsyhPlatformSellpartsnotsaleById(Long id)
    {
        return zsyhPlatformSellpartsnotsaleMapper.selectZsyhPlatformSellpartsnotsaleById(id);
    }

    /**
     * 查询产品禁售区域列表
     * 
     * @param zsyhPlatformSellpartsnotsale 产品禁售区域
     * @return 产品禁售区域
     */
    @Override
    public List<ZsyhPlatformSellpartsnotsale> selectZsyhPlatformSellpartsnotsaleList(ZsyhPlatformSellpartsnotsale zsyhPlatformSellpartsnotsale)
    {
        return zsyhPlatformSellpartsnotsaleMapper.selectZsyhPlatformSellpartsnotsaleList(zsyhPlatformSellpartsnotsale);
    }

    /**
     * 新增产品禁售区域
     * 
     * @param zsyhPlatformSellpartsnotsale 产品禁售区域
     * @return 结果
     */
    @Override
    public int insertZsyhPlatformSellpartsnotsale(ZsyhPlatformSellpartsnotsale zsyhPlatformSellpartsnotsale)
    {
        return zsyhPlatformSellpartsnotsaleMapper.insertZsyhPlatformSellpartsnotsale(zsyhPlatformSellpartsnotsale);
    }

    /**
     * 修改产品禁售区域
     * 
     * @param zsyhPlatformSellpartsnotsale 产品禁售区域
     * @return 结果
     */
    @Override
    public int updateZsyhPlatformSellpartsnotsale(ZsyhPlatformSellpartsnotsale zsyhPlatformSellpartsnotsale)
    {
        return zsyhPlatformSellpartsnotsaleMapper.updateZsyhPlatformSellpartsnotsale(zsyhPlatformSellpartsnotsale);
    }

    /**
     * 删除产品禁售区域对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteZsyhPlatformSellpartsnotsaleByIds(String ids)
    {
        return zsyhPlatformSellpartsnotsaleMapper.deleteZsyhPlatformSellpartsnotsaleByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除产品禁售区域信息
     * 
     * @param id 产品禁售区域ID
     * @return 结果
     */
    @Override
    public int deleteZsyhPlatformSellpartsnotsaleById(Long id)
    {
        return zsyhPlatformSellpartsnotsaleMapper.deleteZsyhPlatformSellpartsnotsaleById(id);
    }
}
